"""
author: Jackson Black
time: 2023-08-14 09-05-00 
"""


# 块if 语句
def if_one(score: float) -> chr:
    if score > 90:
        return 'A'
    elif score > 80:
        return 'B'
    elif score > 70:
        return 'C'
    elif score > 60:
        return 'D'
    else:
        return 'F'


# match...case 语句
def match_one(grade: chr) -> str:
    match grade:
        case 'A':
            return '优秀'
        case 'B':
            return '良好'
        case 'C':
            return '还可以'
        case 'D':
            return '及格'
        case _:
            return '不及格'


# 行if语句
def if_max(a: int, b: int) -> int:
    return a if a > b else b


if __name__ == '__main__':
    print(if_one(90))

# if __name__ == '__main__':
#     print(match_one("A"))
#
# if __name__ == '__main__':
#     print(if_max(3, 4))
